From: Boris Ostrovsky Date: Tue, 2 Aug 2016 15:52:44 +0000 (+0200) Subject: x86/PCI: update ACPI Check to include SGI Ux3 X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~649 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=8746f06cbeef6ff1b0e9f413a222ebf00718b3f9;p=xen.git x86/PCI: update ACPI Check to include SGI Ux3 These systems use variations of SGI3* for ID string. Instead of adding abother set of strings do what Linux did in commit 526018bc and look at first three letters. Signed-off-by: Boris Ostrovsky Acked-by: Jan Beulich --- diff --git a/xen/arch/x86/x86_64/acpi_mmcfg.c b/xen/arch/x86/x86_64/acpi_mmcfg.c index f01ad70f96..3ce85c91ad 100644 --- a/xen/arch/x86/x86_64/acpi_mmcfg.c +++ b/xen/arch/x86/x86_64/acpi_mmcfg.c @@ -55,8 +55,7 @@ static int __init acpi_mcfg_check_entry(struct acpi_table_mcfg *mcfg, if (cfg->address < 0xFFFFFFFF) return 0; - if (!strcmp(mcfg->header.oem_id, "SGI") || - !strcmp(mcfg->header.oem_id, "SGI2")) + if (!strncmp(mcfg->header.oem_id, "SGI", 3)) return 0; if (mcfg->header.revision >= 1 &&